(function () {
    //类型别名
    type ming = {
        name: string,
        age: number
    }
    //类型别名 定义数据
    const zhi: ming = {
        name: "你好",
        age: 12
    }
    /*
        接口 也是一种定义数据的规范
    */
    interface say {
        name: string,
        age: number,

    }
    interface say {
        sex: string,
    }
    //继承 extends
    class Call implements say {
        name: string
        age: number;
        sex: string
        constructor(name: string, age: number, sex: string) {
            this.name = name;
            this.age = age;
            this.sex = sex
        }
        ming() {
            console.log(this.name, this.age, this.sex);
        }
    }
    //实例化class Call
    let a = new Call('我', 99, '男')
    a.ming();

})()